package cn.xsly.basic.mapper;



import cn.xsly.basic.query.BaseQuery;

import java.util.List;

public interface BaseMapper<T> {
    List<T> loadAll();
    T loadById(Long id);
    void save(T department);
    void remove(Long id);
    void update(T department);

    /**
     * 查询总数
     * @return
     */
    Long queryCount(BaseQuery baseQuery);

    /**
     * 查询当前页数据
     */
    List<T>  queryData(BaseQuery baseQuery);

    void patchDel(List<Long> ids);


}
